package com.zretc.service;

import com.zretc.entity.OrderDetail;
import com.zretc.entity.Orders;

import java.util.List;

public interface OrdersService {
    /**
     * 查询所有的订单
     * @return
     */
    List<Orders> getAllOrders();

    /**
     * 查询订单
     * @param orderId  订单编号
     * @return
     */
    Orders getOrderbyOrderId(String orderId);


    /**
     * 订单取消
     * @param orderId 订单编号
     * @return
     */
    int deleteByOrder(String orderId);

    /**
     * 添加订单
     * @param orders  订单对象
     * @return
     */
    int saveOrder(Orders orders);


    /**
     * 添加订单细节表
     * @param orderDetail
     * @return
     */
    int insertOrderDetail(OrderDetail orderDetail);
}
